]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
authPrompt: Explicitly set horizontal alignment
authorYosef Or Boczko <yoseforb@gmail.com>
Wed, 11 Dec 2013 20:36:15 +0000 (22:36 +0200)
committerYosef Or Boczko <yoseforb@gmail.com>
Wed, 11 Dec 2013 20:36:15 +0000 (22:36 +0200)
When set to fill, the label will always end up left-aligned, which
is only correct in LTR locales. Set the alignment explicitly to
work in both RTL and LTR locales.

https://bugzilla.gnome.org/show_bug.cgi?id=712638

js/gdm/authPrompt.js

index 996b363f0fb746d5d55757d8627e3e84738cb588..7a3cf0a29200aa272430f30736158e6e93b19bcc 100644 (file)
@@ -93,7 +93,7 @@ const AuthPrompt = new Lang.Class({
 
         this.actor.add(this._label,
                        { expand: true,
-                         x_fill: true,
+                         x_fill: false,
                          y_fill: true,
                          x_align: St.Align.START });
         this._entry = new St.Entry({ style_class: 'login-dialog-prompt-entry',
@@ -111,7 +111,7 @@ const AuthPrompt = new Lang.Class({
         this._message = new St.Label({ opacity: 0,
                                        styleClass: 'login-dialog-message' });
         this._message.clutter_text.line_wrap = true;
-        this.actor.add(this._message, { x_fill: true, y_align: St.Align.START });
+        this.actor.add(this._message, { x_fill: false, x_align: St.Align.START, y_align: St.Align.START });
 
         this._buttonBox = new St.BoxLayout({ style_class: 'login-dialog-button-box',
                                              vertical: false });